package com.itheima.thread;

public class Demo02 {

    public static void main(String[] args) throws InterruptedException {
        MyRunnable my = new MyRunnable();
        Thread t = new Thread(my);
        t.setName("坤坤");
        t.start();


        for (int i = 0; i < 100; i++) {
            Thread.sleep(200);
            System.out.println("main中执行到了"+i);
        }

    }
}
